﻿using Net.Common;
using WordGames.System;

namespace WordGames
{
    public class ProcedureManager : Singleton<ProcedureManager>
    {
        public IProcedure procedure;

        public async void Update(TcpNetwork client)
        {
            while (true)
            {
                await procedure.Execute(client);
            }
        }

        public async void Update(List<TcpNetwork> clients)
        {
            while (true)
            {
                await procedure.Execute(clients);
            }
        }
    }
}